import request from "@/utils/request"

export const getList = (dsp: any) => {
  return request("/pubmiddlewareconfig/list", "GET", dsp)
}

export const deleteOne = (id: number) => {
  return request("/pubmiddlewareconfig/delete/"+id, "GET", {})
}

export const submitData = (dsp: any) => {
  if (dsp.id) {
    return request("/pubmiddlewareconfig/edit", "POST", dsp)
  }
  return request("/pubmiddlewareconfig/add", "POST", dsp)
}

export const getOne = (id: number) => {
  return request("/pubmiddlewareconfig/detail", "GET", {"id": id})
}

